import Layout from '@/layout'

const entrywarehouseRouter = {
  path: '/entrywarehouse',
  component: Layout,
  redirct: 'entrywarehouse/accept-inform',
  name: '验收入库管理',
  meta: { title: '验收入库管理', icon: 'el-icon-s-management', permissions: ['5'] },
  children: [
    {
      path: 'base-information',
      name: '物品二维码生成',
      component: () => import('@/views/entrywarehouse/base-information'),
      meta: { title: '物品二维码生成', icon: 'el-icon-menu' }
    },
    {
      path: 'accept-inform',
      name: '验收管理',
      component: () => import('@/views/entrywarehouse/accept-inform'),
      meta: { title: '验收管理', icon: 'el-icon-menu' }
    },
    {
      path: 'accept-goods',
      name: '物品验收',
      component: () => import('@/views/entrywarehouse/accept-goods'),
      meta: { title: '物品验收', icon: 'el-icon-menu' }
    },
    {
      path: 'accept-export',
      name: '入库单据导出',
      component: () => import('@/views/entrywarehouse/accept-export'),
      meta: { title: '入库单据导出', icon: 'el-icon-menu' }
    },
    {
      path: 'entry-form',
      name: '入库记录',
      component: () => import('@/views/entrywarehouse/entry-form'),
      meta: { title: '入库记录', icon: 'el-icon-menu' }
    }
  ]
}

export default entrywarehouseRouter

